{subtemplate jameson_read:163/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div class="uk-grid-collapse uk-margin-top shaixuan" uk-grid>
	<div class="uk-width-medium">
		<div class="leftside">
			<div class="shukuname">
				{lang jameson_read:shaixuan}
			</div>
			<ul class="uk-nav uk-nav-parent-icon uk-margin-remove uk-padding-remove" uk-nav>
				{loop $categorys $root}
			    <li class="uk-parent {if $_GET['category_id']==$root['category_id']}uk-open{elseif $root['category_id']==$root['sub'][$_GET['category_id']]['parent_id']}uk-open{/if}">
		            <a href="#" class="">{$root['category_name']}</a>
		            <ul class="uk-nav-sub uk-margin-remove uk-padding-remove">
		            	{loop $root['sub'] $sub}
		                	<li class="{if $_GET['category_id']==$sub['category_id']}uk-active{/if}" >
		                	<a href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'category_id',$sub['category_id']);}">{$sub['category_name']}</a>
		                	</li>
		                {/loop}
		            </ul>
			    </li>
			    {/loop}
			</ul>
		</div>
		{if $adv[0]['adv']}
		<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
			{eval echo stripcslashes($adv[0]['adv']);}
		</div>
		{/if}
		<ul class="uk-margin-top uk-padding-remove mb0 uk-tab-bb" uk-tab>
			<li class="uk-active">
					<a href="javascript:;">{lang jameson_read:xinshushangjia}</a>
			</li>
			<li>
					<a href="javascript:;">{lang jameson_read:yuedubang}</a>
			</li>
		</ul>
		<div class="uk-switcher">
			<ul class="uk-list uk-list-paihang uk-border-e6 uk-padding-remove mt0">
				{loop $paihangbang['zuixin'] $key $book}
					{if !$key}
					<li class="tuline cl">
						<span class="z mr10 xs3">1</span>
						<a href="{eval echo jamesonurl('book',$book['book_id']);}" class="z mr10 img"><img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt=""></a>
						<div>
							<a class="xs3 xw1" href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
							<p>
							<a class="xs1 xg1" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
							</p>
						</div>
					</li>
					{elseif $key < 8}
					<li class="line"><a href="{eval echo jamesonurl('book',$book['book_id']);}"><span>{eval echo $key+1;}</span>{$book['book_name']}</a></li>
					{/if}
				{/loop}
			</ul>
			<ul class="uk-list uk-list-paihang uk-border-e6 uk-padding-remove mt0">
				{loop $paihangbang['yuedu'] $key $book}
					{if !$key}
					<li class="tuline cl">
						<span class="z mr10 xs3">1</span>
						<a href="{eval echo jamesonurl('book',$book['book_id']);}" class="z mr10 img"><img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt=""></a>
						<div>
							<a class="xs3 xw1" href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
							<p>
							<a class="xs1 xg1" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
							</p>
						</div>
					</li>
					{elseif $key < 8}
					<li class="line"><a href="{eval echo jamesonurl('book',$book['book_id']);}"><span>{eval echo $key+1;}</span>{$book['book_name']}</a></li>
					{/if}
				{/loop}
			</ul>
		</div>
		{if $adv[1]['adv']}
		<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
			{eval echo stripcslashes($adv[1]['adv']);}
		</div>
		{/if}
	</div>
	<div class="uk-width-expand uk-margin-left">
		<div class="uk-border-e6 uk-padding sxtype" uk-alert>
			<div>
				<a>{lang jameson_read:zhuangtai}</a>
				<a class="  {if !isset($_GET['plan'])||($_GET['plan']=='empty')}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan','empty');}">{lang jameson_read:quanbu}</a>
				<a class=" {if isset($_GET['plan']) && !$_GET['plan']}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan',0);}">{lang jameson_read:lianzaizhong}</a>
				<a class=" {if $_GET['plan']==1}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan',1);}">{lang jameson_read:yiwanjie}</a>
			</div>
			<div class="mt10">
				<a>{lang jameson_read:zishu}</a>
				<a class="  {if !isset($_GET['zishu'])||($_GET['zishu']=='empty')}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu','empty');}">{lang jameson_read:quanbu}</a>
				<a class=" {if intval($_GET['zishu'] == 1000000) }active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',1000000);}">{lang jameson_read:zishuduan1}</a>
				<a class=" {if intval($_GET['zishu'] == 5000000) }active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',5000000);}">{lang jameson_read:zishuduan2}</a>
				<a class=" {if intval($_GET['zishu'] == 10000000) }active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',10000000);}">{lang jameson_read:zishuduan3}</a>
				<a class=" {if intval($_GET['zishu'] == 10000001) }active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',10000001);}">{lang jameson_read:zishuduan4}</a>
			</div>
			{if $_G['jameson_read']['shuxinglist']}
				<div class="mt10 pt10">
					{loop $_G['jameson_read']['shuxinglist'] $tag}
						<a href="./plugin.php?id=jameson_read&contrl=index&act=tag&tag={$tag}" class="uk-badge">{$tag}</a>
					{/loop}
				</div>
			{/if}
		</div>
		<div class="uk-margin-top uk-border-e6 uk-padding-small">
			{if $books}
				<h4 class="uk-heading-divider">
					{lang jameson_read:xuandingtiaojian} 
					<strong class="uk-text-danger">{$counts}</strong>
				</h4>
				<div class="uk-grid-collapse uk-child-width-1-2 shaixuanbooklist" uk-grid>
					{loop $books $key $book}
						<div class="cl uk-margin-bottom">
							<div class="book-img z">
			                    <a href="{eval echo jamesonurl('book',$book['book_id']);}">
			                        <img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
			                    </a>
			                </div>
			                <div class="book-info">
                                <h4><a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a></h4>
                                <a class="xg1 xs1 xw0" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
                                <p class="desco">
                                       {$book['desco']}
                                </p>
                            </div>
						</div>
					{/loop}
				</div>
				<div class="uk-margin-top cl">{$pageshow}</div>
			{else}
				<div class="uk-alert-danger uk-padding" uk-alert>{lang jameson_read:meizhaodaoxiangguantushu}</div>
			{/if}
		</div>
	</div>
</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
{subtemplate jameson_read:163/read_footer}